{extend  name="Index/index" /}
{block name="main"}
 <!-- 内容区域 -->
        <div class="tpl-content-wrapper">

            <div class="container-fluid am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                        <div class="page-header-heading"><span class="am-icon-home page-header-heading-icon"></span> 编辑课程</div>
                    </div>
                </div>
            </div>
            <div class="row-content am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">编辑课程</div>
                                <div class="widget-function am-fr">
                                    <a href="javascript:;" class="am-icon-cog"></a>
                                </div>
                            </div>
                            <div class="widget-body am-fr">

                                <form class="am-form tpl-form-border-form tpl-form-border-br"  method="post"  action="{:url('admin/course/update')}">
                                
                                    <div class="am-form-group">
                                        <label for="user-name" class="am-u-sm-3 am-form-label">课程 <span class="tpl-form-line-small-title">Title</span></label>
                                        <div class="am-u-sm-9">
                                            <input type="text" class="tpl-form-input" id="user-name" placeholder="请输入课程的名称"  name="coursename"  value="{$data.coursename}">
                                            <small>请填写课程的名称12字之内</small>
                                        </div>
                                    </div>

                                    <div class="am-form-group">
                                        <label for="user-name" class="am-u-sm-3 am-form-label">价格 <span class="tpl-form-line-small-title">Price</span></label>
                                      <div class="am-u-sm-9">
                                            <input type="text" class="tpl-form-input" id="user-name" placeholder="价格"  name="price" value="{$data.price}">
                                            <small>请填写课程的价格</small>
                                        </div>
                                     </div>
                                   <div class="am-form-group">
                                        <label for="user-phone" class="am-u-sm-3 am-form-label">状态 <span class="tpl-form-line-small-title">status</span></label>
                                        <div class="am-u-sm-9">
                                            <select data-am-selected="{searchBox: 1}"    name="display">  
                                              
                                               <option value="1">显示</option>
                                                 <option value="2">隐藏</option>
                                               
                                            </select>
                                        </div>

                                </div>
                                    <div class="am-form-group">
                                        <label for="user-intro" class="am-u-sm-3 am-form-label">描述<span class="tpl-form-line-small-title">desc</span></label>
                                        <div class="am-u-sm-9">
                                            <textarea class="" rows="10" id="user-intro" placeholder="请输入该课程的描述"  name="desc" >{$data.desc}</textarea>
                                        </div>
                                    </div>
                                     <input type="hidden" name="id" value="{$data.id}">
                                    <div class="am-form-group">
                                        <div class="am-u-sm-9 am-u-sm-push-3">
                                            <button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>


            </div>

        </div>
    </div>

{/block}
{block name="myjs"}
{/block}